<div id="header">
    <a href="/">
        <p>disputeo.com</p>
    </a>
    <div class="userinfo">
        <?php if ($this->user): ?>
            <a href="/user/account-details"><?php echo $this->user->username ?></a> | 
            <a href="/login/logout">sign out</a>
        <?php else: ?>
            <a href="/login/">login or register</a> | 
            <a href="/login/reset">forgot password?</a>
        <?php endif ?>
    </div>
</div>